<#import "/spring.ftl" as s/>
<@override name="main">
<div id="project_form_div">
	<form action="#" id="project_form">
		<table art="form" columns="90,*" autoLabel="true" rightAlign="true" colon="true">
            <tr>
                <td>
                    <input id="id" name="id" form_fill="false" type="hidden" value="${id}"/>
                </td>
                <td>
                </td>
            </tr>
			<tr>
				<td>
					<label art='label' for="name" required='true'><@s.message "project.form.name"/></label>
				</td>
				<td>
					<input id="name" name="name" form_fill="false" type="text" art="textbox" emptyText="<@s.message "project.form.name"/>"
						   required="true" value="${project.name}"/>
				</td>
			</tr>
			<tr>
				<td>
					<label for="code" art='label' required='true'><@s.message "project.form.code"/></label>
                </td>
                <td>
                    <input id="code" name="code" form_fill="true" type="text" art="textbox" required='true'value="${project.code}"/>
                </td>
			</tr>
			<tr>
				<td>
					<label for="url" art='label' required='true'><@s.message "project.form.url"/></label>
				</td>
				<td>
					<input id="url" name="url" form_fill="true" type="text" art="textbox" required='true'value="${project.url}"/>
				</td>
			</tr>
			<tr>
				<td>
					<label for="lead" art='label' required='true'><@s.message "project.form.lead"/></label>
				</td>
				<td>
					<input id="lead" name="lead" form_fill="true" type="text" art="textbox" required='true'value="${project.lead}"/>
				</td>
			</tr>
			<tr>
				<td>
					<label for="team" art='label' required='true'><@s.message "project.form.team"/></label>
				</td>
				<td>
					<input id="team" name="team" form_fill="true" type="text" art="textbox" required='true'value="${project.team}"/>
				</td>
			</tr>
			<tr>
				<td>
					<label for="description" art='label' required='true'><@s.message "project.form.description"/></label>
				</td>
				<td>
					<input id="description" name="description" form_fill="true" type="text" art="textbox" required='true'value="${project.description}"/>
				</td>
			</tr>
			<tr>
				<td></td>
				<td>
					<input art="button" id="project_save" text="<@s.message "operation.save"/>" onclick="project_form.submit();"/>
				</td>
			</tr>
		</table>
	</form>
</div>

</@override>
<@override name="scripts">
<script type="text/javascript" src="<@s.url '/resources/scripts/project/edit.js'/>"></script>
</@override>
<@extends name="/common/layout.ftl" current="issue"></@extends>
